package com.huluobo.base.net

/**
 *  Created by LC on 2024/6/22.
 *  常量池 const 常量
 */
class Const {
    companion object {
        //基准地址
        const val baseUrl = "http://10.161.9.80:7012"

        //token
        const val PARAM_TOKEN = "token"

        //登录接口
        const val URL_LOGIN = "/user/loginjson"

        //用户名参数
        const val PARAM_USERNAME = "username"

        //密码参数
        const val PARAM_PASSWORD = "password"

        //json转换body
        const val MEDIA_TYPE = "application/json;charset=utf-8"

        //再次填入密码参数
        const val PARAM_RE_PASSWORD = "repassword"

        //注册接口
        const val URL_REGISTER = "/user/register"

        //首页商品数据
        const val URL_HOME_GOODS_LIST = "/goods/info"

        //当前页码
        const val PARAM_CURRENT_PAGE = "currentPage"

        //页面数量
        const val PARAM_PAGE_SIZE = "pageSize"

        //分类id
        const val PARAM_CATEGORY_ID = "category_id"

        //banner接口
        const val URL_HOME_BANNER = "/banner/json"

        //首页导航接口
        const val URL_HOME_NAV = "/goods/category"

        //商品id
        const val PARAM_GOODS_ID = "goods_id"

        //详情接口
        const val URL_DETAIL = "/goods/detail"

        //添加购物车接口
        const val URL_ADD_TO_CART = "/goods/addCar"

        //数量参数
        const val PARAM_COUNT = "count"

        //查询购物车接口
        const val URL_QUERY_CART = "/goods/selectCar"

        //一二级分类接口
        const val URL_CATEGORY_LIST = "/goods/category"

        //三级分类接口
        const val URL_CATEGORY_GOODS_LIST = "/goods/info"

        //删除购物车参数
        const val PARAM_IDS = "ids"

        //删除购物车接口
        const val URL_DELETE_CART = "/goods/deleteCar"
    }
}